module.exports = app => {
    const { router, controller } = app;

    router.post('/api/pub/user/register', controller.user.userRegister);
    router.post('/api/pub/user/login', controller.user.userLogin);

    router.post('/api/user/initUser', controller.user.initUser);
    router.post('/api/user/addUser', controller.user.addUser);
    router.put('/api/user/editUser', controller.user.editUser);
    router.get('/api/user/getUser/:userId', controller.user.getUser);
    router.get('/api/user/getUserAll', controller.user.getUserAll);
    router.del('/api/user/delUser/:userId', controller.user.delUser);
};